package com.example.chao.myphotosearch.adapters.holders;

import android.view.ViewGroup;

import com.example.chao.myphotosearch.R;
import com.example.chao.myphotosearch.dao.Recommend;
import com.example.chao.myphotosearch.widget.MyCycleViewRelativeLayout;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by chao on 2016/3/19.
 */
public class HeadHolder extends BaseViewHolder<Recommend> {
    @Bind(R.id.my_cycle_view_RL)
    MyCycleViewRelativeLayout myCycleViewRL;

    public HeadHolder(ViewGroup parent) {
        super(parent, R.layout.recycler_main_head);
        ButterKnife.bind(this,itemView);
    }


    @Override
    public void setData(final Recommend data) {
        myCycleViewRL.initCycleData(data.getRecommendContents());
    }
}
